home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vbdatabs / hpux10.mak < prev    next >
Makefile  |  1999-04-01  |  4KB  |  122 lines

  1. #######################
  2. #### Start of File ####
  3. #######################
  4. # --------------------------------------------------------------- 
  5. # Makefile Contents: Makefile for the test program
  6. # C/C++ Compiler Used: HP C++ A.10.24  compiled for HP-UX 10.20 
  7. # Produced By: Doug Gaer
  8. # File Creation Date: 03/09/1999 
  9. # Date Last Modified: 04/02/1999
  10. # --------------------------------------------------------------- 
  11. # --------------- Makefile Description and Details -------------- 
  12. # --------------------------------------------------------------- 
  13. # Complier Flags 
  14. #    v   -- Echo compilation
  15. #    g   -- Enable debugging
  16. #    +w  -- Turn on all warnings
  17. #       +eh  -- Enable C++ exception handling
  18. #    +a1 -- Allow ANSI C automatic aggregate initialization    
  19. #    -pta -- Instantiate entire template class
  20. #
  21. #    +DAportable -- Generate code compatible across PA-RISC 1.1 
  22. #    and 2.0 HP workstations and servers, use the option.  
  23. #
  24. #    +DSmodel --  Use the instruction scheduler tuned to the model
  25. #    specified. model can be a model number, PA-RISC architecture 
  26. #    designation or PA-RISC processor name. See the file:
  27. #    /opt/langtools/lib/sched.models for a list of model numbers and 
  28. #    processor names.  
  29. #
  30. #    +Oopt --  Invoke optimizations selected by opt. Defined values 
  31. #    for opt are:
  32. #
  33. #    0    Perform minimal optimizations.  
  34. #    1    Perform optimizations within basic blocks only.
  35. #    2    Perform level 1 and global optimizations. Same as -O.
  36. #    3    Perform level 2 as well as interprocedural global opts.
  37. #    4    Perform level 3 as well as doing link time optimizations.
  38. #    Also sends +Oprocelim and +Ofastaccess to the linker.
  39. #
  40. # Linker flags 
  41. #    -lm -- Needed for math library
  42. # --------------------------------------------------------------- 
  43. SHELL = /bin/sh
  44.  
  45. # Define a name for the executable
  46. PROJECT = as2htm
  47.  
  48. # Installation directory for the application and config files
  49. INSTALL_DIR = ../../bin
  50.  
  51. # Macro for path separator
  52. PATHSEP=/
  53.  
  54. # Setup additional paths for includes and source code
  55. AS2HTM_PATH = .
  56. HTMLDRV_PATH = ../../src
  57.  
  58. ADD_INC_PATHS = -I../../include
  59.  
  60. # Setup define macros
  61. DEFMACS = -D__UNIX__
  62.  
  63. # Define macros for compiler and linker
  64. CC = cc
  65. CPP = CC
  66. LINKER = ld
  67.  
  68. # Define compiler and linker flags macros
  69. CFLAGS= -v +a1 +DAportable -pta $(ADD_INC_PATHS) $(DEFMACS)
  70. COMPILE_ONLY = -c
  71. OUTPUT = -o
  72. LFLAGS =  
  73.  
  74. # Build dependency rules
  75. # ===============================================================
  76. HTMLDRV_DEP = ../../include/htmldrv.h
  77.  
  78. AS2HTM_DEP = ../../include/htmldrv.h
  79. # ===============================================================
  80.  
  81. # Compile the files and build the executable
  82. # ===============================================================
  83. all:    $(PROJECT)
  84.  
  85. htmldrv.o:    $(HTMLDRV_PATH)$(PATHSEP)htmldrv.cpp $(HTMLDRV_DEP)
  86.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  87.     $(HTMLDRV_PATH)$(PATHSEP)htmldrv.cpp
  88.  
  89. as2htm.o:    $(AS2HTM_PATH)$(PATHSEP)as2htm.cpp $(AS2HTM_DEP)
  90.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  91.     $(AS2HTM_PATH)$(PATHSEP)as2htm.cpp
  92.  
  93. # Make the executable
  94. OBJECTS = htmldrv.o as2htm.o 
  95.  
  96. $(PROJECT):    $(OBJECTS)
  97.     $(CPP) $(CFLAGS) $(OBJECTS) $(OUTPUT) $(PROJECT) 
  98. # ===============================================================
  99.  
  100. # Install the binaries and config files to the bin directory
  101. # ===============================================================
  102. install:
  103.     echo Installing $(PROJECT) binaries to the bin directory
  104.     cp $(PROJECT) $(INSTALL_DIR)/. 
  105. # ===============================================================
  106.  
  107. # Remove object files and the executable after running make 
  108. # ===============================================================
  109. clean:
  110.     echo Removing all OBJECT files from working directory...
  111.     rm -f *.o 
  112.  
  113.     echo Removing template repository from working directory...
  114.     rm -r -f ptrepository
  115.  
  116.     echo Removing EXECUTABLE file from working directory...
  117.     rm -f $(PROJECT)
  118. # --------------------------------------------------------------- 
  119. #####################
  120. #### End of File ####
  121. #####################
  122.